from application import db


class Document(db.Model):
    __tablename__ = 'document'

    id = db.Column(db.Integer, primary_key=True)
    type = db.Column(db.String(30, 'utf8mb4_0900_ai_ci'))
    classone = db.Column(db.String(30, 'utf8mb4_0900_ai_ci'))
    title = db.Column(db.String(50, 'utf8mb4_0900_ai_ci'))
    image=db.Column(db.String(100, 'utf8mb4_0900_ai_ci'))
    content = db.Column(db.TEXT)
    company = db.Column(db.String(30, 'utf8mb4_0900_ai_ci'))
